<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thông tin sản phẩm</title>


<link href="../style/css_qt.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
include("../config/config.php");
$lenh = "select masp,tensp,matl,hinh,cannang,chientich,changa,maoga,maulong,thangtuoi,giatien,ngaynhap,soluong,thongtinkhac from sanpham";
$kq = mysql_query($lenh);


?>
<table width="775" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="35" height="30" align="center">STT</td>
    <td width="62" height="30" align="center">Mã sản phẩm</td>
    <td width="78" height="30" align="center">Tên sản phẩm</td>
    <td width="82" height="30" align="center">Mã thể loại</td>
    <td width="83" height="30" align="center">Hình</td>
    <td width="65" height="30" align="center">Cân nặng</td>
    <td width="58" height="30" align="center">Chiến tích</td>
    <td width="47" height="30" align="center">Chân gà</td>
    <td width="36" height="30" align="center">Mào gà</td>
    <td width="72" height="30" align="center">Màu lông</td>
    <td width="72" height="30" align="center">Tháng tuổi</td>
    <td width="69" height="30" align="center">Giá tiền</td>
    <td width="64" height="30" align="center">Ngày nhập</td>
    <td width="48" height="30" align="center">Số lượng</td>
    <td width="51" height="30" align="center">Thông tin khác</td>
    <td width="33" height="30" align="center">Xóa</td>
    <td width="39" height="30" align="center">Sửa</td>
   
  </tr>
  <?php
  $stt = $x + 1;
  while($row = mysql_fetch_array($kq))
  {
	  ?>
  <tr>
    <td align="center"><?php echo $stt ?></td>
    <td align="center"><?php echo $row[0] ?></td>
    <td align="center"><?php echo $row[1] ?></td>
    <td align="center"><?php echo $row[2] ?></td>
     <td align="center"><img src="../image/<?php  echo $row[3]; ?>" width="100" height="75"></td>
    <td align="center"><?php echo $row[4] ?></td>
    <td align="center"><?php echo $row[5] ?></td>
    <td align="center"><?php echo $row[6] ?></td>
    <td align="center"><?php echo $row[7] ?></td>
    <td align="center"><?php echo $row[8] ?></td>
    <td align="center"><?php echo $row[9] ?></td>
    <td align="center"><?php echo $row[10] ?></td>
    <td align="center"><?php echo $row[11] ?></td>
    <td align="center"><?php echo $row[12] ?></td>
    <td align="center"><?php echo $row[13] ?></td>
 
    <td align="center"><a href="xoasp.php?idxoasp=<?php echo $row[0]; ?>">XÓA</a></td>
  	<td align="center"><a href="indexqt.php?idsuasp=<?php echo $row[0]; ?>">SỬA</a></td>
   
  
  </tr>
   <?php
  $stt++;
  }
  ?>
</table>
</body>
</html>